package com.baomidou.blog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

	@RequestMapping("/")
	public String index(ModelMap map) {
		map.addAttribute("host", "http://blog.baomidou.com");
		return "index";
	}
	
	@RequestMapping("/page")
	public String page(ModelMap map) {
		map.addAttribute("host", "http://blog.baomidou.com");
		return "index";
	}

}
